package com.jdbcdemo.test;

import java.io.IOException;
import java.sql.SQLException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Time1 {
	public static void main(String[] args)throws IOException,
			ClassNotFoundException, SQLException, ParseException {

		Date date = new Date();
		String st = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
		DaoOperat dao = new DaoOperat();
		dao.insert2(st);
        dao.select();
	}
}
